<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>添加</title>

</head>
<body>
<h1>编辑学生操作</h1>
<form method="post" action="/edic_student/">
    <p style="display: none">学生id:<input type="text" name="id" value="{{ student.id }}"></p>
    <p>学生名字:<input type="text" name="name" value="{{ student.name }}"></p>
    <p>学生班级:
    <select name="class_id">
        {% for row in result %}
            {% if row.id == student.id %}
                <option selected value="{{ row.id }}">{{ row.title }}</option>
            {% else %}
                <option  value="{{ row.id }}">{{ row.title }}</option>
            {% endif %}
        {% endfor %}
    </select>
    </p>
    <input type="submit" value="提交">
</form>
</body>

</html>
